<meta charset="utf-8" />
<script>
    var name = prompt("请您输入英语单词：");

    if(name=="name"){
        document.write("名字");
    }else if(name=="forever"){
        document.write("永远");
    }else if(name=="young"){
        document.write("年轻的")
    }else{
        document.write("查无此词");
    }
</script>

